package leetcode

func singleNumber(nums []int) int {
	var result int
	for i, count := 0, len(nums); i < count; i++ {
		result ^= nums[i]
	}
	return result
}
